DOS program ends but window does not close due to message display.
Cause:
The MS-DOS window remains open to display any messages, such as errors, that may be generated by the MS-DOS-based application.
Solution:
Select the 'Close on exit' check box in the program properties tab for the DOS application's icon.
1) Right-click the icon for the MS-DOS-based application. (A pop-up menu appears.)
2) Select 'Properties'. (The application's 'Properties' dialog box appears.)
3) Click the 'Program' tab.
4) Select the 'Close on exit' check box to select that option.
'Close on exit' check box
5) Click 'Apply'.
6) Click 'OK'.
NOTE 1: The MS-DOS-based application window should now close after the application has finished executing.
NOTE 2: This setting must be changed for each MS-DOS-based application individually. There is no way to set this option globally.